/*** 
 * @Author: wq
 * @Date: 2021-07-20 22:06:52
 * @LastEditTime: 2021-07-20 22:37:49
 * @LastEditors: wq
 * @Description: 
 * @FilePath: /opencv_camera/code/WinInfo/src/screen.h
 * @CSDN： https://blog.csdn.net/u011218356 
 * @Git:  https://github.com/WQuit 
 * @Email:  779508400@qq.com  
 * @    星河灿烂，你是人间烟火
 */

#ifndef _SCREEN_H_
#define _SCREEN_H_

#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
#include <iostream>
#include <list>

struct screenInfo
{
    bool primary; //是否是主屏
    int number;
    int x;
    int y;
    int width;
    int height;
    int mwidth;
    int mheight;
};

class screen
{
private:
    /* data */
public:
    screen(/* args */);
    ~screen();
    static void showInfo();
    static std::list<screenInfo> infoList();
};

#endif